#include<iostream>
using namespace std;
template<typename T>
T Max(T a, T b)
{
	return a > b ? a : b;
}
int main()
{
	cout << Max(2, 5) << endl;
	cout << Max(1.5, 2.5) << endl;
	cout << Max<int>(2, 8.5) << endl;
	cout << Max<float>(2.5, 8) << endl;
	return 0;
}